package com.stxx.stiot2.domain;

import com.stxx.framwork.annotation.Id;
import com.stxx.framwork.annotation.Transient;
import com.stxx.framwork.constants.DriverType;
import com.stxx.framwork.tran.TranBean;
import com.stxx.stiot2.domain.ext.GatewayParams;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Map;

@Data
public class Gateway implements Serializable, TranBean {
    @Id
    private String code;
    private String name;
    private String password;
    private String category;
    private String remark;
    private Boolean online;
    private Boolean timeoutEnable; //启用超时离线
    private Integer timeoutSecond; //超时秒数
    private Long lastReportTime;
    private DriverType driverType;
    private String driverClass;
    private Boolean active;
    private Boolean regiTerminal;
    private GatewayParams params;
    @Transient
    private Map<String,Object> tran;
}
